<div class="">
  <div class="widget-box">
    <div class="widget-title title-bar">
      <h3>
        <span>
          {{widget_title}} 
        </span> 
      </h3> 
      <div class="pull-right" style="margin-right: 10px;">
        <input type="text" placeholder="可输入组织机构、姓名、ERP编号" ng-model="filter_value" style="width: 200px;"/>
      </div>
      <div class="pull-right" style="margin-right: 15px;">
        在册总数：{{employees.length}}
        <span ng-if="filter_value.length !=0 ">
          查询结果数: {{filter_drivers.length}}
        </span>
        <a href="javascript:void(0)" ng-click="clear_filter()">清空查询</a>
      </div>
      
      <div class="clear"></div>
    </div> 
    <div class="widget-content-table" style="overflow-x: auto;">
      
      <table class="table-border">
        <thead>
          <tr>
            <th style="min-width: 40px;">序号</th>
            <th style="min-width: 110px;" ng-repeat="x in employees_key">
              {{x}}
            </th>
            <th style="min-width: 40px;">证书</th>
            <th style="min-width: 40px;">岗位</th>  
            <th style="min-width: 40px;">合同</th> 
            
          </tr>
        </thead>
        <tbody>
          <tr ng-repeat="r in perpage ">
            <td>{{$index+1}}</td>
            
            <td ng-repeat="x in employees_key">
              {{r.roster_attrs[x]}}
            </td>

            <td>
              <a href="javascript:void(0)" ng-click="edit_certificates(r._id)" class="" >查看</a>
            </td>
            <td>
              <a href="javascript:void(0)" ng-click="edit_positions(r._id)">查看</a>
            </td>   
            <td>
              <a href="javascript:void(0)" ng-click="edit_contracts(r._id)">查看</a>
            </td> 
            
            <!-- <td><a href="javascript:void(0)" ng-click="itemEdit(r._id)">编辑</a></td> -->
          </tr>
        </tbody>
      </table>
      
      <pagination ng-if="filter_drivers.length > page_info.perpage_count" total-items="filter_drivers.length" items-per-page="page_info.perpage_count" ng-model="page_info.current_page" ng-change="pageChanged()" previous-text="上一页" next-text="下一页"></pagination>


   </div>
  </div>
</div>

<div class="span6" ui-view>

 </div>  
<div class="clear"></div>
